package com.sunrise.generico.entidade;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

import com.sunrise.generico.entidade.iface.EntidadeNegocio;

@Entity
@Table(name = "pis")
public class PIS implements EntidadeNegocio {



	/**
	 * 
	 */
	private static final long serialVersionUID = 6245607247041173997L;

	@Id
	@SequenceGenerator(name="pk_sequence",sequenceName="pis_id_seq", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="pk_sequence")
	@javax.persistence.Column
	@Getter @Setter
	private Long id;
	
	@OneToOne
	@Getter @Setter
	private SituacaoTributaria situacaoTributaria;
	
	@Getter @Setter
	@Column(name = "vBC", length = 15, scale = 2)
	private BigDecimal vBC;
	
	@Getter @Setter
	@Column(name = "pPIS", length = 5, scale = 2)
	private BigDecimal pPIS;
	
	@Getter @Setter
	@Column(name = "vPIS", length = 15, scale = 2)
	private BigDecimal vPIS;
	
	@Getter @Setter
	@Column(name = "qBCProd", length = 16, scale = 4)
	private BigDecimal qBCProd;
	
	@Getter @Setter
	@Column(name = "vAliqProd", length = 15, scale = 4)
	private BigDecimal vAliqProd;
	
	@Column(name = "tipoCalculo")
	@Getter @Setter
	private Boolean tipoCalculo;
	
	
	@OneToOne
	@Getter @Setter
	private Produto produto;
	
}
